/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sislab;

/**
 *
 * @author Developer
 */
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
import sislab.Utilities.PrintAction;

public class Borrar extends JFrame{


    JButton button;

    public void init(){
        
        setDefaultCloseOperation(EXIT_ON_CLOSE);

        Icon icon = new ImageIcon("c:\\printer-icon.jpg");
        button = new JButton(new PrintAction());
        button.addActionListener(new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                new TurnosDisponiblesView(new JFrame(), true).setVisible(true);

            }
        });
        getContentPane().add(button);
        pack();
        setVisible(true);
    }

    public static void main(String arg[]) {
        new Borrar().init();
    }
}
